home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
System Booster
/
System Booster.iso
/
SYS
/
s
/
SetConfig.bed
< prev
next >
Wrap
Text File
|
1996-09-26
|
681b
|
41 lines
/*
** $VER: SetConfig.bed 1.0 (14.01.96)
**
** Load a configuration according to the filename extension
*/
OPTIONS RESULTS
GetFileInfo
PARSE VAR RESULT . . '"'name'"'
IF NAME ~= "" THEN DO
dotpos = LASTPOS('.', name)
IF dotpos = 0 THEN
ext = ""
ELSE
ext = SUBSTR(name, dotpos+1)
END
SELECT
/*
** You can insert here how many extensions you want:
**
** For example:
**
** WHEN (ext = 'asm') | (ext = 's') | (ext = 'a') THEN DO
** OpenPrefs "BED:Support/Assembler.prf"
** OpenDefinitions "BED:Support/Assembler.dfn"
** END
**
*/
WHEN (ext = 'c') | (ext = 'h') THEN DO
OpenPrefs "BED:Support/SAS_C.prf"
OpenDefinitions "BED:Support/SAS_C.dfn"
END
END
END